<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>无线蓝牙耳机 - 好物圈</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    
    <style>
        /* 基础样式 */
        body {
            font-family: 'Inter', system-ui, sans-serif;
            background-color: #f8f9fa;
            color: #343a40;
            line-height: 1.6;
        }
        
        /* 导航栏 */
        .navbar {
            background-color: white;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            padding: 0.8rem 0;
        }
        
        .logo {
            font-weight: 700;
            font-size: 1.5rem;
            color: #2563eb;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .search-container {
            position: relative;
            max-width: 500px;
            width: 100%;
        }
        
        .search-input {
            width: 100%;
            padding: 10px 15px 10px 40px;
            border: 1px solid #e2e8f0;
            border-radius: 24px;
            transition: all 0.2s;
        }
        
        .search-input:focus {
            outline: none;
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        }
        
        .search-icon {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #94a3b8;
        }
        
        /* 主内容区 */
        .main-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 2rem 1rem;
        }
        
        .breadcrumb {
            margin-bottom: 1.5rem;
            background-color: transparent;
            padding: 0;
        }
        
        .breadcrumb-item a {
            color: #64748b;
            text-decoration: none;
        }
        
        .breadcrumb-item a:hover {
            color: #2563eb;
            text-decoration: underline;
        }
        
        .breadcrumb-item.active {
            color: #343a40;
        }
        
        /* 商品详情区 */
        .product-detail-section {
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            overflow: hidden;
            margin-bottom: 2rem;
        }
        
        /* 商品图片 */
        .product-images {
            padding: 1.5rem;
        }
        
        .main-image-container {
            border-radius: 8px;
            overflow: hidden;
            margin-bottom: 1rem;
            background-color: #f8fafc;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 300px;
        }
        
        .main-image {
            width: 100%;
            height: auto;
            max-height: 500px;
            object-fit: contain;
        }
        
        .thumbnail-images {
            display: flex;
            gap: 0.75rem;
            overflow-x: auto;
            padding-bottom: 0.5rem;
        }
        
        .thumbnail-item {
            width: 80px;
            height: 80px;
            border-radius: 6px;
            overflow: hidden;
            cursor: pointer;
            border: 2px solid transparent;
            transition: all 0.2s;
            flex-shrink: 0;
        }
        
        .thumbnail-item:hover, .thumbnail-item.active {
            border-color: #2563eb;
        }
        
        .thumbnail-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        /* 商品信息 */
        .product-info {
            padding: 1.5rem;
            border-left: 1px solid #f1f5f9;
        }
        
        .product-title {
            font-size: 1.75rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: #1e293b;
        }
        
        .product-rating-sales {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
        }
        
        .product-rating {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .rating-stars {
            color: #f59e0b;
        }
        
        .rating-count {
            color: #64748b;
            font-size: 0.9rem;
        }
        
        .product-sales {
            color: #64748b;
            font-size: 0.9rem;
        }
        
        .product-price {
            background-color: #fef2f2;
            border-radius: 6px;
            padding: 1rem;
            margin-bottom: 1.5rem;
        }
        
        .price-label {
            color: #64748b;
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
        }
        
        .price-value {
            font-size: 2rem;
            font-weight: 700;
            color: #dc2626;
        }
        
        .price-original {
            color: #94a3b8;
            text-decoration: line-through;
            margin-left: 0.5rem;
            font-size: 1rem;
        }
        
        .price-discount {
            background-color: #ef4444;
            color: white;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 0.8rem;
            margin-left: 0.5rem;
        }
        
        .product-attributes {
            margin-bottom: 1.5rem;
        }
        
        .attribute-group {
            margin-bottom: 1rem;
        }
        
        .attribute-label {
            display: block;
            margin-bottom: 0.75rem;
            font-weight: 500;
            color: #334155;
        }
        
        .attribute-options {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
        }
        
        .attribute-option {
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            padding: 8px 16px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .attribute-option:hover, .attribute-option.selected {
            border-color: #2563eb;
            color: #2563eb;
            background-color: rgba(37, 99, 235, 0.05);
        }
        
        .product-quantity {
            margin-bottom: 2rem;
        }
        
        .quantity-label {
            display: block;
            margin-bottom: 0.75rem;
            font-weight: 500;
            color: #334155;
        }
        
        .quantity-controls {
            display: flex;
            align-items: center;
            width: 120px;
        }
        
        .quantity-btn {
            width: 36px;
            height: 36px;
            border: 1px solid #e2e8f0;
            background-color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .quantity-btn:hover {
            background-color: #f1f5f9;
        }
        
        .quantity-minus {
            border-radius: 6px 0 0 6px;
        }
        
        .quantity-plus {
            border-radius: 0 6px 6px 0;
        }
        
        .quantity-input {
            width: 48px;
            height: 36px;
            border-top: 1px solid #e2e8f0;
            border-bottom: 1px solid #e2e8f0;
            border-left: none;
            border-right: none;
            text-align: center;
        }
        
        .quantity-input:focus {
            outline: none;
        }
        
        .product-actions {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }
        
        .action-btn {
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            flex: 1;
            min-width: 140px;
        }
        
        .btn-primary {
            background-color: #2563eb;
            color: white;
            border: 1px solid #2563eb;
        }
        
        .btn-primary:hover {
            background-color: #1d4ed8;
        }
        
        .btn-secondary {
            background-color: white;
            color: #2563eb;
            border: 1px solid #2563eb;
        }
        
        .btn-secondary:hover {
            background-color: rgba(37, 99, 235, 0.05);
        }
        
        .btn-outline {
            background-color: white;
            color: #64748b;
            border: 1px solid #e2e8f0;
        }
        
        .btn-outline:hover {
            background-color: #f1f5f9;
        }
        
        .product-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
            padding-top: 1.5rem;
            border-top: 1px solid #f1f5f9;
        }
        
        .meta-item {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #64748b;
            font-size: 0.9rem;
        }
        
        /* 卖家信息 */
        .seller-info {
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            padding: 1.5rem;
            margin-bottom: 2rem;
        }
        
        .seller-header {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1rem;
        }
        
        .seller-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .seller-name {
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 4px;
        }
        
        .seller-rating {
            color: #64748b;
            font-size: 0.9rem;
        }
        
        .seller-actions {
            margin-left: auto;
        }
        
        .follow-btn {
            background-color: white;
            border: 1px solid #2563eb;
            color: #2563eb;
            border-radius: 6px;
            padding: 6px 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .follow-btn:hover, .follow-btn.following {
            background-color: #2563eb;
            color: white;
        }
        
        .seller-stats {
            display: flex;
            justify-content: space-between;
            padding-top: 1rem;
            border-top: 1px solid #f1f5f9;
        }
        
        .stat-item {
            text-align: center;
        }
        
        .stat-value {
            font-weight: 700;
            color: #1e293b;
        }
        
        .stat-label {
            color: #64748b;
            font-size: 0.85rem;
        }
        
        /* 商品详情标签页 */
        .product-tabs {
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            margin-bottom: 2rem;
            overflow: hidden;
        }
        
        .nav-tabs {
            border-bottom: 1px solid #e2e8f0;
            margin-bottom: 0;
        }
        
        .nav-tabs .nav-item {
            margin-bottom: 0;
        }
        
        .nav-tabs .nav-link {
            color: #64748b;
            border: none;
            border-bottom: 3px solid transparent;
            padding: 1rem 1.5rem;
            font-weight: 500;
            transition: all 0.2s;
        }
        
        .nav-tabs .nav-link:hover {
            color: #2563eb;
            background-color: transparent;
        }
        
        .nav-tabs .nav-link.active {
            color: #2563eb;
            border-bottom-color: #2563eb;
            background-color: transparent;
        }
        
        .tab-content {
            padding: 2rem;
        }
        
        .detail-content {
            line-height: 1.8;
        }
        
        .detail-content img {
            max-width: 100%;
            height: auto;
            margin: 1.5rem 0;
            border-radius: 8px;
        }
        
        .detail-section {
            margin-bottom: 2rem;
        }
        
        .detail-section-title {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: #1e293b;
        }
        
        .feature-list {
            list-style-type: none;
            padding: 0;
        }
        
        .feature-item {
            display: flex;
            margin-bottom: 1rem;
        }
        
        .feature-icon {
            color: #2563eb;
            margin-right: 0.75rem;
            flex-shrink: 0;
            margin-top: 4px;
        }
        
        /* 评论区 */
        .reviews-section {
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            padding: 2rem;
            margin-bottom: 2rem;
        }
        
        .reviews-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
            flex-wrap: wrap;
            gap: 1rem;
        }
        
        .reviews-title {
            font-size: 1.5rem;
            font-weight: 600;
            color: #1e293b;
        }
        
        .reviews-count {
            color: #64748b;
            margin-left: 0.5rem;
            font-weight: normal;
        }
        
        .reviews-summary {
            display: flex;
            align-items: center;
            gap: 2rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }
        
        .overall-rating {
            text-align: center;
        }
        
        .rating-value {
            font-size: 3rem;
            font-weight: 700;
            color: #f59e0b;
            line-height: 1;
        }
        
        .rating-stars-large {
            font-size: 1.25rem;
            color: #f59e0b;
            margin: 0.5rem 0;
        }
        
        .rating-count {
            color: #64748b;
        }
        
        .rating-distribution {
            flex: 1;
            min-width: 300px;
        }
        
        .rating-bar {
            display: flex;
            align-items: center;
            margin-bottom: 0.5rem;
        }
        
        .rating-level {
            width: 40px;
            flex-shrink: 0;
        }
        
        .rating-progress {
            flex: 1;
            height: 8px;
            background-color: #f1f5f9;
            border-radius: 4px;
            overflow: hidden;
            margin: 0 1rem;
        }
        
        .progress-fill {
            height: 100%;
            background-color: #f59e0b;
        }
        
        .rating-percentage {
            width: 40px;
            text-align: right;
            color: #64748b;
            flex-shrink: 0;
        }
        
        /* 评论输入框 */
        .review-input-section {
            background-color: #f8fafc;
            border-radius: 8px;
            padding: 1.5rem;
            margin-bottom: 2rem;
        }
        
        .review-input-header {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1rem;
        }
        
        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .your-rating {
            color: #334155;
            font-weight: 500;
        }
        
        .rating-input {
            color: #d1d5db;
            font-size: 1.25rem;
            cursor: pointer;
        }
        
        .rating-input .star.active {
            color: #f59e0b;
        }
        
        .review-textarea {
            width: 100%;
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            padding: 1rem;
            min-height: 120px;
            resize: vertical;
            margin-bottom: 1rem;
        }
        
        .review-textarea:focus {
            outline: none;
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        }
        
        .review-actions {
            display: flex;
            justify-content: flex-end;
        }
        
        .submit-review {
            background-color: #2563eb;
            color: white;
            border: none;
            border-radius: 6px;
            padding: 8px 20px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .submit-review:hover {
            background-color: #1d4ed8;
        }
        
        /* 评论列表 */
        .reviews-list {
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }
        
        .review-item {
            padding-bottom: 2rem;
            border-bottom: 1px solid #f1f5f9;
        }
        
        .review-item:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }
        
        .review-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 1rem;
        }
        
        .reviewer-info {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .reviewer-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .reviewer-name {
            font-weight: 500;
        }
        
        .review-date {
            color: #94a3b8;
            font-size: 0.9rem;
            margin-top: 2px;
        }
        
        .review-rating {
            color: #f59e0b;
        }
        
        .review-content {
            margin-bottom: 1rem;
            line-height: 1.8;
        }
        
        .review-images {
            display: flex;
            gap: 0.75rem;
            margin-bottom: 1rem;
        }
        
        .review-image {
            width: 100px;
            height: 100px;
            border-radius: 6px;
            object-fit: cover;
        }
        
        .review-actions {
            display: flex;
            gap: 1.5rem;
        }
        
        .review-action {
            display: flex;
            align-items: center;
            gap: 5px;
            color: #64748b;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .review-action:hover {
            color: #2563eb;
        }
        
        .review-action.liked {
            color: #ef4444;
        }
        
        /* 回复区域 */
        .replies-section {
            margin-top: 1rem;
            margin-left: 2rem;
            padding-top: 1rem;
            border-top: 1px dashed #e2e8f0;
        }
        
        .reply-item {
            margin-bottom: 1rem;
            padding: 1rem;
            background-color: #f8fafc;
            border-radius: 6px;
        }
        
        .reply-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.5rem;
        }
        
        .replier-info {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        
        .replier-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .replier-name {
            font-weight: 500;
            font-size: 0.95rem;
        }
        
        .reply-date {
            color: #94a3b8;
            font-size: 0.85rem;
        }
        
        .reply-content {
            margin-bottom: 0.75rem;
            font-size: 0.95rem;
        }
        
        .reply-actions {
            display: flex;
            gap: 1.5rem;
            font-size: 0.9rem;
        }
        
        .reply-form {
            margin-top: 1rem;
            display: flex;
            gap: 0.75rem;
        }
        
        .reply-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            object-fit: cover;
            flex-shrink: 0;
        }
        
        .reply-input-container {
            flex: 1;
        }
        
        .reply-input {
            width: 100%;
            border: 1px solid #e2e8f0;
            border-radius: 20px;
            padding: 8px 16px;
            margin-bottom: 0.75rem;
        }
        
        .reply-input:focus {
            outline: none;
            border-color: #2563eb;
        }
        
        .reply-form-actions {
            display: flex;
            justify-content: flex-end;
            gap: 0.75rem;
        }
        
        .cancel-reply {
            background: none;
            border: none;
            color: #64748b;
            cursor: pointer;
        }
        
        .submit-reply {
            background-color: #2563eb;
            color: white;
            border: none;
            border-radius: 4px;
            padding: 4px 16px;
            cursor: pointer;
        }
        
        /* 相关推荐 */
        .related-products {
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            padding: 2rem;
            margin-bottom: 2rem;
        }
        
        .related-title {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            color: #1e293b;
        }
        
        .related-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 1.5rem;
        }
        
        .related-product {
            text-decoration: none;
            color: inherit;
        }
        
        .related-product:hover .related-title {
            color: #2563eb;
        }
        
        .related-image {
            height: 160px;
            background-color: #f8fafc;
            border-radius: 6px;
            overflow: hidden;
            margin-bottom: 0.75rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .related-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .related-title {
            font-weight: 500;
            margin-bottom: 0.5rem;
            font-size: 1rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            transition: color 0.2s;
        }
        
        .related-price {
            color: #dc2626;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }
        
        .related-rating {
            color: #f59e0b;
            font-size: 0.85rem;
        }
        
        
        /* 响应式设计 */
        @media (max-width: 992px) {
            .product-info {
                border-left: none;
                border-top: 1px solid #f1f5f9;
            }
            
            .reviews-summary {
                flex-direction: column;
                align-items: center;
            }
            
            .overall-rating {
                margin-bottom: 1.5rem;
            }
        }
        
        @media (max-width: 768px) {
            .product-actions {
                flex-direction: column;
            }
            
            .action-btn {
                width: 100%;
            }
            
            .nav-tabs .nav-link {
                padding: 0.75rem 1rem;
                font-size: 0.9rem;
            }
            
            .tab-content {
                padding: 1.5rem;
            }
            
            .reviews-section {
                padding: 1.5rem;
            }
            
            .related-products {
                padding: 1.5rem;
            }
            
            .related-grid {
                grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            }
        }
        
        @media (max-width: 576px) {
            .product-title {
                font-size: 1.5rem;
            }
            
            .price-value {
                font-size: 1.75rem;
            }
            
            .nav-tabs {
                flex-wrap: wrap;
            }
            
            .nav-tabs .nav-item {
                flex: 1;
                text-align: center;
            }
            
            .detail-section-title {
                font-size: 1.25rem;
            }
            
            .reviews-title {
                font-size: 1.25rem;
            }
            
            .related-title {
                font-size: 1.25rem;
            }
            
            .review-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.5rem;
            }
            
            .replies-section {
                margin-left: 0;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg">
        <div class="container">
            <a href="#" class="logo">
                <i class="fas fa-shopping-bag"></i>
                <span>好物圈</span>
            </a>
            
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarContent">
                <i class="fas fa-bars"></i>
            </button>
            
            <div class="collapse navbar-collapse justify-content-center" id="navbarContent">
                <div class="search-container">
                    <i class="fas fa-search search-icon"></i>
                    <input type="text" class="search-input" placeholder="搜索商品、品牌或卖家...">
                </div>
            </div>
            
            <div class="d-flex gap-3">
                <a href="#" class="nav-link" style="color: #343a40;">
                    <i class="fas fa-heart"></i>
                </a>
                <a href="#" class="nav-link" style="color: #343a40;">
                    <i class="fas fa-bell"></i>
                </a>
                <a href="#" class="nav-link" style="color: #343a40;">
                    <i class="fas fa-user-circle fa-lg"></i>
                </a>
            </div>
        </div>
    </nav>
    
    <!-- 主内容区 -->
    <div class="main-container">
        <!-- 面包屑导航 -->
        <nav aria-label="breadcrumb">
            <ol class="breadcrumb">
                <li class="breadcrumb-item"><a href="#">首页</a></li>
                <li class="breadcrumb-item"><a href="#">电子产品</a></li>
                <li class="breadcrumb-item"><a href="#">耳机音响</a></li>
                <li class="breadcrumb-item active" aria-current="page">无线蓝牙耳机</li>
            </ol>
        </nav>
        
        <div class="row">
            <!-- 左侧主内容 -->
            <div class="col-lg-8">
                <!-- 商品详情 -->
                <div class="product-detail-section">
                    <div class="row">
                        <!-- 商品图片 -->
                        <div class="col-md-6 product-images">
                            <div class="main-image-container">
                                <img src="https://picsum.photos/800/800?random=1" alt="无线蓝牙耳机" class="main-image" id="mainProductImage">
                            </div>
                            <div class="thumbnail-images">
                                <div class="thumbnail-item active">
                                    <img src="https://picsum.photos/800/800?random=1" alt="耳机正面图" class="thumbnail-image" data-img="https://picsum.photos/800/800?random=1">
                                </div>
                                <div class="thumbnail-item">
                                    <img src="https://picsum.photos/800/800?random=2" alt="耳机侧面图" class="thumbnail-image" data-img="https://picsum.photos/800/800?random=2">
                                </div>
                                <div class="thumbnail-item">
                                    <img src="https://picsum.photos/800/800?random=3" alt="耳机充电盒" class="thumbnail-image" data-img="https://picsum.photos/800/800?random=3">
                                </div>
                                <div class="thumbnail-item">
                                    <img src="https://picsum.photos/800/800?random=4" alt="耳机配件" class="thumbnail-image" data-img="https://picsum.photos/800/800?random=4">
                                </div>
                                <div class="thumbnail-item">
                                    <img src="https://picsum.photos/800/800?random=5" alt="耳机包装" class="thumbnail-image" data-img="https://picsum.photos/800/800?random=5">
                                </div>
                            </div>
                        </div>
                        
                        <!-- 商品信息 -->
                        <div class="col-md-6 product-info">
                            <h1 class="product-title">无线蓝牙耳机 主动降噪 长续航 高清音质 运动防水</h1>
                            
                            <div class="product-rating-sales">
                                <div class="product-rating">
                                    <div class="rating-stars">
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star-half-alt"></i>
                                    </div>
                                    <div class="rating-count">4.5 (128 评价)</div>
                                </div>
                                <div class="product-sales">已售 326 件</div>
                            </div>
                            
                            <div class="product-price">
                                <div class="price-label">活动价</div>
                                <div class="price-value">
                                    ¥399.00
                                    <span class="price-original">¥599.00</span>
                                    <span class="price-discount">33% 优惠</span>
                                </div>
                            </div>
                            
                            <div class="product-attributes">
                                <div class="attribute-group">
                                    <div class="attribute-label">颜色</div>
                                    <div class="attribute-options">
                                        <div class="attribute-option selected">黑色</div>
                                        <div class="attribute-option">白色</div>
                                        <div class="attribute-option">蓝色</div>
                                        <div class="attribute-option">红色</div>
                                    </div>
                                </div>
                                
                                <div class="attribute-group">
                                    <div class="attribute-label">版本</div>
                                    <div class="attribute-options">
                                        <div class="attribute-option selected">标准版</div>
                                        <div class="attribute-option">旗舰版</div>
                                        <div class="attribute-option">运动版</div>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="product-quantity">
                                <div class="quantity-label">购买数量</div>
                                <div class="quantity-controls">
                                    <button class="quantity-btn quantity-minus" id="quantityMinus">
                                        <i class="fas fa-minus"></i>
                                    </button>
                                    <input type="number" class="quantity-input" value="1" min="1" id="quantityInput">
                                    <button class="quantity-btn quantity-plus" id="quantityPlus">
                                        <i class="fas fa-plus"></i>
                                    </button>
                                </div>
                            </div>
                            
                            <div class="product-actions">
                                <button class="action-btn btn-primary" id="addCartBtn">
                                    <i class="fas fa-shopping-cart"></i> 加入购物车
                                </button>
                                <button class="action-btn btn-secondary" id="buyNowBtn">
                                    <i class="fas fa-bolt"></i> 立即购买
                                </button>
                                <button class="action-btn btn-outline" id="wishlistBtn">
                                    <i class="far fa-heart"></i>
                                </button>
                            </div>
                            
                            <div class="product-meta">
                                <div class="meta-item">
                                    <i class="fas fa-truck"></i>
                                    <span>满99元免运费</span>
                                </div>
                                <div class="meta-item">
                                    <i class="fas fa-shield-alt"></i>
                                    <span>正品保障</span>
                                </div>
                                <div class="meta-item">
                                    <i class="fas fa-exchange-alt"></i>
                                    <span>7天无理由退换</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 商品详情标签页 -->
                <div class="product-tabs">
                    <ul class="nav nav-tabs" id="productTabs" role="tablist">
                        <li class="nav-item" role="presentation">
                            <button class="nav-link active" id="description-tab" data-bs-toggle="tab" data-bs-target="#description" type="button" role="tab" aria-controls="description" aria-selected="true">商品详情</button>
                        </li>
                        <li class="nav-item" role="presentation">
                            <button class="nav-link" id="specifications-tab" data-bs-toggle="tab" data-bs-target="#specifications" type="button" role="tab" aria-controls="specifications" aria-selected="false">规格参数</button>
                        </li>
                        <li class="nav-item" role="presentation">
                            <button class="nav-link" id="shipping-tab" data-bs-toggle="tab" data-bs-target="#shipping" type="button" role="tab" aria-controls="shipping" aria-selected="false">配送信息</button>
                        </li>
                    </ul>
                    <div class="tab-content" id="productTabsContent">
                        <div class="tab-pane fade show active" id="description" role="tabpanel" aria-labelledby="description-tab">
                            <div class="detail-content">
                                <div class="detail-section">
                                    <h3 class="detail-section-title">产品介绍</h3>
                                    <p>这款无线蓝牙耳机采用最新蓝牙5.2技术，带来更稳定的连接和更低的延迟。主动降噪功能可以有效隔绝环境噪音，让您专注于音乐或通话。</p>
                                    <img src="https://picsum.photos/1200/600?random=10" alt="耳机产品展示">
                                    <p>内置高灵敏度麦克风，采用波束成形技术，确保通话清晰。IPX7级防水设计，适合运动时使用，不必担心汗水或小雨影响。</p>
                                </div>
                                
                                <div class="detail-section">
                                    <h3 class="detail-section-title">产品特点</h3>
                                    <ul class="feature-list">
                                        <li class="feature-item">
                                            <div class="feature-icon">
                                                <i class="fas fa-check-circle"></i>
                                            </div>
                                            <div>主动降噪技术，可有效降低环境噪音达35dB</div>
                                        </li>
                                        <li class="feature-item">
                                            <div class="feature-icon">
                                                <i class="fas fa-check-circle"></i>
                                            </div>
                                            <div>单次充电可使用8小时，充电盒可额外提供32小时续航</div>
                                        </li>
                                        <li class="feature-item">
                                            <div class="feature-icon">
                                                <i class="fas fa-check-circle"></i>
                                            </div>
                                            <div>快速充电10分钟，可使用2小时</div>
                                        </li>
                                        <li class="feature-item">
                                            <div class="feature-icon">
                                                <i class="fas fa-check-circle"></i>
                                            </div>
                                            <div>支持无线充电，兼容所有Qi标准充电器</div>
                                        </li>
                                        <li class="feature-item">
                                            <div class="feature-icon">
                                                <i class="fas fa-check-circle"></i>
                                            </div>
                                            <div>触控操作，支持播放/暂停、切换曲目、调节音量、接打电话等功能</div>
                                        </li>
                                    </ul>
                                    <img src="https://picsum.photos/1200/600?random=11" alt="耳机功能展示">
                                </div>
                                
                                <div class="detail-section">
                                    <h3 class="detail-section-title">包装清单</h3>
                                    <ul class="feature-list">
                                        <li class="feature-item">
                                            <div class="feature-icon">
                                                <i class="fas fa-box"></i>
                                            </div>
                                            <div>无线耳机 × 1对</div>
                                        </li>
                                        <li class="feature-item">
                                            <div class="feature-icon">
                                                <i class="fas fa-box"></i>
                                            </div>
                                            <div>充电盒 × 1</div>
                                        </li>
                                        <li class="feature-item">
                                            <div class="feature-icon">
                                                <i class="fas fa-box"></i>
                                            </div>
                                            <div>Type-C充电线 × 1</div>
                                        </li>
                                        <li class="feature-item">
                                            <div class="feature-icon">
                                                <i class="fas fa-box"></i>
                                            </div>
                                            <div>硅胶耳塞（S/M/L）× 3对</div>
                                        </li>
                                        <li class="feature-item">
                                            <div class="feature-icon">
                                                <i class="fas fa-box"></i>
                                            </div>
                                            <div>用户手册 × 1</div>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        
                        <div class="tab-pane fade" id="specifications" role="tabpanel" aria-labelledby="specifications-tab">
                            <div class="detail-content">
                                <table class="table table-striped">
                                    <tbody>
                                        <tr>
                                            <td style="width: 30%; font-weight: 500;">品牌</td>
                                            <td>SoundMaster</td>
                                        </tr>
                                        <tr>
                                            <td style="font-weight: 500;">型号</td>
                                            <td>SM-BT008</td>
                                        </tr>
                                        <tr>
                                            <td style="font-weight: 500;">蓝牙版本</td>
                                            <td>蓝牙5.2</td>
                                        </tr>
                                        <tr>
                                            <td style="font-weight: 500;">蓝牙协议</td>
                                            <td>A2DP, AVRCP, HFP, HSP</td>
                                        </tr>
                                        <tr>
                                            <td style="font-weight: 500;">频率响应</td>
                                            <td>20Hz - 20kHz</td>
                                        </tr>
                                        <tr>
                                            <td style="font-weight: 500;">阻抗</td>
                                            <td>32Ω</td>
                                        </tr>
                                        <tr>
                                            <td style="font-weight: 500;">降噪深度</td>
                                            <td>最高35dB</td>
                                        </tr>
                                        <tr>
                                            <td style="font-weight: 500;">单次续航</td>
                                            <td>8小时（ANC关闭）</td>
                                        </tr>
                                        <tr>
                                            <td style="font-weight: 500;">充电盒容量</td>
                                            <td>580mAh</td>
                                        </tr>
                                        <tr>
                                            <td style="font-weight: 500;">总续航时间</td>
                                            <td>40小时</td>
                                        </tr>
                                        <tr>
                                            <td style="font-weight: 500;">充电时间</td>
                                            <td>约1.5小时</td>
                                        </tr>
                                        <tr>
                                            <td style="font-weight: 500;">防水等级</td>
                                            <td>IPX7</td>
                                        </tr>
                                        <tr>
                                            <td style="font-weight: 500;">重量</td>
                                            <td>单只耳机约5.4g</td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                        
                        <div class="tab-pane fade" id="shipping" role="tabpanel" aria-labelledby="shipping-tab">
                            <div class="detail-content">
                                <div class="detail-section">
                                    <h3 class="detail-section-title">配送信息</h3>
                                    <ul class="feature-list">
                                        <li class="feature-item">
                                            <div class="feature-icon">
                                                <i class="fas fa-truck"></i>
                                            </div>
                                            <div>支持圆通、申通、中通、韵达快递配送</div>
                                        </li>
                                        <li class="feature-item">
                                            <div class="feature-icon">
                                                <i class="fas fa-map-marker-alt"></i>
                                            </div>
                                            <div>全国大部分地区支持配送，偏远地区（新疆、西藏、青海等）需加收运费</div>
                                        </li>
                                        <li class="feature-item">
                                            <div class="feature-icon">
                                                <i class="fas fa-clock"></i>
                                            </div>
                                            <div>下单后48小时内发货，一般3-7天送达</div>
                                        </li>
                                        <li class="feature-item">
                                            <div class="feature-icon">
                                                <i class="fas fa-tag"></i>
                                            </div>
                                            <div>满99元免运费，不足99元收取8元运费</div>
                                        </li>
                                    </ul>
                                </div>
                                
                                <div class="detail-section">
                                    <h3 class="detail-section-title">售后服务</h3>
                                    <ul class="feature-list">
                                        <li class="feature-item">
                                            <div class="feature-icon">
                                                <i class="fas fa-exchange-alt"></i>
                                            </div>
                                            <div>支持7天无理由退换货（商品完好，不影响二次销售）</div>
                                        </li>
                                        <li class="feature-item">
                                            <div class="feature-icon">
                                                <i class="fas fa-wrench"></i>
                                            </div>
                                            <div>产品享受12个月质保服务</div>
                                        </li>
                                        <li class="feature-item">
                                            <div class="feature-icon">
                                                <i class="fas fa-headphones"></i>
                                            </div>
                                            <div>客服热线：400-123-4567（工作日 9:00-18:00）</div>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 评论区 -->
                <div class="reviews-section">
                    <div class="reviews-header">
                        <h2 class="reviews-title">用户评价 <span class="reviews-count">(128)</span></h2>
                    </div>
                    
                    <div class="reviews-summary">
                        <div class="overall-rating">
                            <div class="rating-value">4.5</div>
                            <div class="rating-stars-large">
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star-half-alt"></i>
                            </div>
                            <div class="rating-count">基于 128 条评价</div>
                        </div>
                        
                        <div class="rating-distribution">
                            <div class="rating-bar">
                                <div class="rating-level">5星</div>
                                <div class="rating-progress">
                                    <div class="progress-fill" style="width: 65%;"></div>
                                </div>
                                <div class="rating-percentage">65%</div>
                            </div>
                            <div class="rating-bar">
                                <div class="rating-level">4星</div>
                                <div class="rating-progress">
                                    <div class="progress-fill" style="width: 20%;"></div>
                                </div>
                                <div class="rating-percentage">20%</div>
                            </div>
                            <div class="rating-bar">
                                <div class="rating-level">3星</div>
                                <div class="rating-progress">
                                    <div class="progress-fill" style="width: 10%;"></div>
                                </div>
                                <div class="rating-percentage">10%</div>
                            </div>
                            <div class="rating-bar">
                                <div class="rating-level">2星</div>
                                <div class="rating-progress">
                                    <div class="progress-fill" style="width: 3%;"></div>
                                </div>
                                <div class="rating-percentage">3%</div>
                            </div>
                            <div class="rating-bar">
                                <div class="rating-level">1星</div>
                                <div class="rating-progress">
                                    <div class="progress-fill" style="width: 2%;"></div>
                                </div>
                                <div class="rating-percentage">2%</div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 评论输入框 -->
                    <div class="review-input-section">
                        <div class="review-input-header">
                            <img src="https://picsum.photos/100/100?random=200" alt="用户头像" class="user-avatar">
                            <div>
                                <div class="your-rating">您的评价</div>
                                <div class="rating-input" id="userRating">
                                    <i class="fas fa-star star" data-rating="1"></i>
                                    <i class="fas fa-star star" data-rating="2"></i>
                                    <i class="fas fa-star star" data-rating="3"></i>
                                    <i class="fas fa-star star" data-rating="4"></i>
                                    <i class="fas fa-star star" data-rating="5"></i>
                                </div>
                            </div>
                        </div>
                        <textarea class="review-textarea" placeholder="分享您对这款产品的使用体验..."></textarea>
                        <div class="review-actions">
                            <button class="submit-review" id="submitReviewBtn">发表评价</button>
                        </div>
                    </div>
                    
                    <!-- 评论列表 -->
                    <div class="reviews-list">
                        <!-- 评论1 -->
                        <div class="review-item">
                            <div class="review-header">
                                <div class="reviewer-info">
                                    <img src="https://picsum.photos/100/100?random=201" alt="用户头像" class="reviewer-avatar">
                                    <div>
                                        <div class="reviewer-name">李明</div>
                                        <div class="review-date">2023-06-15</div>
                                    </div>
                                </div>
                                <div class="review-rating">
                                    <i class="fas fa-star"></i>
                                    <i class="fas fa-star"></i>
                                    <i class="fas fa-star"></i>
                                    <i class="fas fa-star"></i>
                                    <i class="fas fa-star"></i>
                                </div>
                            </div>
                            <div class="review-content">
                                音质非常好，降噪效果超出预期，在地铁里使用几乎能完全隔绝外界噪音。续航也不错，充一次电可以用很久。佩戴起来很舒适，长时间使用也不会觉得不适。性价比很高的一款耳机。
                            </div>
                            <div class="review-images">
                                <img src="https://picsum.photos/300/300?random=21" alt="用户上传图片" class="review-image">
                                <img src="https://picsum.photos/300/300?random=22" alt="用户上传图片" class="review-image">
                            </div>
                            <div class="review-actions">
                                <div class="review-action like-btn" data-id="1">
                                    <i class="far fa-thumbs-up"></i>
                                    <span>有用 (24)</span>
                                </div>
                                <div class="review-action reply-btn" data-id="1">
                                    <i class="far fa-comment"></i>
                                    <span>回复</span>
                                </div>
                            </div>
                            
                            <!-- 回复区域 -->
                            <div class="replies-section">
                                <div class="reply-item">
                                    <div class="reply-header">
                                        <div class="replier-info">
                                            <img src="https://picsum.photos/100/100?random=101" alt="卖家头像" class="replier-avatar">
                                            <div>
                                                <div class="replier-name">数码专营店 <span style="color: #2563eb; font-size: 0.8rem;">卖家</span></div>
                                                <div class="reply-date">2023-06-16</div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="reply-content">
                                        感谢您的好评！我们一直致力于提供高品质的产品和服务，您的满意是我们最大的动力！
                                    </div>
                                    <div class="reply-actions">
                                        <div class="review-action like-reply-btn" data-id="1-1">
                                            <i class="far fa-thumbs-up"></i>
                                            <span>有用 (3)</span>
                                        </div>
                                        <div class="review-action reply-reply-btn" data-id="1-1">
                                            <i class="far fa-comment"></i>
                                            <span>回复</span>
                                        </div>
                                    </div>
                                </div>
                                
                                <!-- 回复输入框 -->
                                <div class="reply-form" id="replyForm-1" style="display: none;">
                                    <img src="https://picsum.photos/100/100?random=200" alt="用户头像" class="reply-avatar">
                                    <div class="reply-input-container">
                                        <input type="text" class="reply-input" placeholder="写下您的回复...">
                                        <div class="reply-form-actions">
                                            <button class="cancel-reply" data-id="1">取消</button>
                                            <button class="submit-reply" data-id="1">回复</button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <!-- 评论2 -->
                        <div class="review-item">
                            <div class="review-header">
                                <div class="reviewer-info">
                                    <img src="https://picsum.photos/100/100?random=202" alt="用户头像" class="reviewer-avatar">
                                    <div>
                                        <div class="reviewer-name">王芳</div>
                                        <div class="review-date">2023-06-10</div>
                                    </div>
                                </div>
                                <div class="review-rating">
                                    <i class="fas fa-star"></i>
                                    <i class="fas fa-star"></i>
                                    <i class="fas fa-star"></i>
                                    <i class="fas fa-star"></i>
                                    <i class="far fa-star"></i>
                                </div>
                            </div>
                            <div class="review-content">
                                耳机整体不错，音质清晰，佩戴舒适。但降噪效果没有宣传的那么好，在嘈杂环境中还是能听到不少声音。续航能力确实很强，一周充一次电就够了。总体来说值得购买。
                            </div>
                            <div class="review-actions">
                                <div class="review-action like-btn" data-id="2">
                                    <i class="far fa-thumbs-up"></i>
                                    <span>有用 (12)</span>
                                </div>
                                <div class="review-action reply-btn" data-id="2">
                                    <i class="far fa-comment"></i>
                                    <span>回复</span>
                                </div>
                            </div>
                            
                            <!-- 回复输入框 -->
                            <div class="replies-section">
                                <div class="reply-form" id="replyForm-2" style="display: none;">
                                    <img src="https://picsum.photos/100/100?random=200" alt="用户头像" class="reply-avatar">
                                    <div class="reply-input-container">
                                        <input type="text" class="reply-input" placeholder="写下您的回复...">
                                        <div class="reply-form-actions">
                                            <button class="cancel-reply" data-id="2">取消</button>
                                            <button class="submit-reply" data-id="2">回复</button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <!-- 评论3 -->
                        <div class="review-item">
                            <div class="review-header">
                                <div class="reviewer-info">
                                    <img src="https://picsum.photos/100/100?random=203" alt="用户头像" class="reviewer-avatar">
                                    <div>
                                        <div class="reviewer-name">张伟</div>
                                        <div class="review-date">2023-06-05</div>
                                    </div>
                                </div>
                                <div class="review-rating">
                                    <i class="fas fa-star"></i>
                                    <i class="fas fa-star"></i>
                                    <i class="fas fa-star"></i>
                                    <i class="far fa-star"></i>
                                    <i class="far fa-star"></i>
                                </div>
                            </div>
                            <div class="review-content">
                                耳机连接有时候会不稳定，偶尔会有断连的情况。音质一般，低音效果不够。续航还可以，佩戴感也不错。希望厂家能通过固件更新解决连接问题。
                            </div>
                            <div class="review-images">
                                <img src="https://picsum.photos/300/300?random=23" alt="用户上传图片" class="review-image">
                            </div>
                            <div class="review-actions">
                                <div class="review-action like-btn" data-id="3">
                                    <i class="far fa-thumbs-up"></i>
                                    <span>有用 (5)</span>
                                </div>
                                <div class="review-action reply-btn" data-id="3">
                                    <i class="far fa-comment"></i>
                                    <span>回复</span>
                                </div>
                            </div>
                            
                            <!-- 回复区域 -->
                            <div class="replies-section">
                                <div class="reply-item">
                                    <div class="reply-header">
                                        <div class="replier-info">
                                            <img src="https://picsum.photos/100/100?random=101" alt="卖家头像" class="replier-avatar">
                                            <div>
                                                <div class="replier-name">数码专营店 <span style="color: #2563eb; font-size: 0.8rem;">卖家</span></div>
                                                <div class="reply-date">2023-06-06</div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="reply-content">
                                        非常抱歉给您带来不好的体验，连接问题我们已经收到，技术团队正在紧急处理，预计下周会推出固件更新解决此问题。如有其他问题，欢迎随时联系我们的客服。
                                    </div>
                                    <div class="reply-actions">
                                        <div class="review-action like-reply-btn" data-id="3-1">
                                            <i class="far fa-thumbs-up"></i>
                                            <span>有用 (1)</span>
                                        </div>
                                        <div class="review-action reply-reply-btn" data-id="3-1">
                                            <i class="far fa-comment"></i>
                                            <span>回复</span>
                                        </div>
                                    </div>
                                </div>
                                
                                <!-- 回复输入框 -->
                                <div class="reply-form" id="replyForm-3" style="display: none;">
                                    <img src="https://picsum.photos/100/100?random=200" alt="用户头像" class="reply-avatar">
                                    <div class="reply-input-container">
                                        <input type="text" class="reply-input" placeholder="写下您的回复...">
                                        <div class="reply-form-actions">
                                            <button class="cancel-reply" data-id="3">取消</button>
                                            <button class="submit-reply" data-id="3">回复</button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 分页 -->
                    <div class="pagination-container">
                        <div class="pagination">
                            <button class="page-btn disabled">
                                <i class="fas fa-chevron-left"></i>
                            </button>
                            <button class="page-btn active">1</button>
                            <button class="page-btn">2</button>
                            <button class="page-btn">3</button>
                            <button class="page-btn">4</button>
                            <button class="page-btn">5</button>
                            <button class="page-btn">
                                <i class="fas fa-chevron-right"></i>
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 相关推荐 -->
                <div class="related-products">
                    <h2 class="related-title">猜你喜欢</h2>
                    <div class="related-grid">
                        <a href="#" class="related-product">
                            <div class="related-image">
                                <img src="https://picsum.photos/400/400?random=31" alt="无线充电器" class="img-fluid">
                            </div>
                            <div class="related-title">无线充电器 15W快充 兼容所有Qi设备</div>
                            <div class="related-price">¥89.00</div>
                            <div class="related-rating">
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="far fa-star"></i>
                                <span style="color: #64748b; margin-left: 5px;">4.0</span>
                            </div>
                        </a>
                        
                        <a href="#" class="related-product">
                            <div class="related-image">
                                <img src="https://picsum.photos/400/400?random=32" alt="蓝牙音箱" class="img-fluid">
                            </div>
                            <div class="related-title">便携式蓝牙音箱 重低音 防水设计 户外适用</div>
                            <div class="related-price">¥199.00</div>
                            <div class="related-rating">
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star-half-alt"></i>
                                <span style="color: #64748b; margin-left: 5px;">4.5</span>
                            </div>
                        </a>
                        
                        <a href="#" class="related-product">
                            <div class="related-image">
                                <img src="https://picsum.photos/400/400?random=33" alt="耳机保护套" class="img-fluid">
                            </div>
                            <div class="related-title">耳机保护套 适用于多种型号 防摔防刮</div>
                            <div class="related-price">¥29.90</div>
                            <div class="related-rating">
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <span style="color: #64748b; margin-left: 5px;">5.0</span>
                            </div>
                        </a>
                        
                        <a href="#" class="related-product">
                            <div class="related-image">
                                <img src="https://picsum.photos/400/400?random=34" alt="智能手表" class="img-fluid">
                            </div>
                            <div class="related-title">智能手表 心率监测 运动计步 长续航</div>
                            <div class="related-price">¥299.00</div>
                            <div class="related-rating">
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="far fa-star"></i>
                                <i class="far fa-star"></i>
                                <span style="color: #64748b; margin-left: 5px;">3.0</span>
                            </div>
                        </a>
                    </div>
                </div>
            </div>
            
            <!-- 右侧边栏 -->
            <div class="col-lg-4">
                <!-- 卖家信息 -->
                <div class="seller-info">
                    <div class="seller-header">
                        <img src="https://picsum.photos/100/100?random=101" alt="数码专营店" class="seller-avatar">
                        <div>
                            <div class="seller-name">数码专营店</div>
                            <div class="seller-rating">
                                <i class="fas fa-star" style="color: #f59e0b;"></i>
                                <span style="margin-left: 5px;">4.8 (1200+ 评价)</span>
                            </div>
                        </div>
                        <div class="seller-actions">
                            <button class="follow-btn" id="followSellerBtn">关注</button>
                        </div>
                    </div>
                    <div class="seller-stats">
                        <div class="stat-item">
                            <div class="stat-value">98%</div>
                            <div class="stat-label">好评率</div>
                        </div>
                        <div class="stat-item">
                            <div class="stat-value">2.5万+</div>
                            <div class="stat-label">月销</div>
                        </div>
                        <div class="stat-item">
                            <div class="stat-value">5年</div>
                            <div class="stat-label">开店时长</div>
                        </div>
                        <div class="stat-item">
                            <div class="stat-value">24h</div>
                            <div class="stat-label">回复率</div>
                        </div>
                    </div>
                </div>
                
                <!-- 商品促销 -->
                <div class="seller-info">
                    <h3 style="font-weight: 600; margin-bottom: 1rem;">促销活动</h3>
                    <ul class="feature-list">
                        <li class="feature-item">
                            <div class="feature-icon">
                                <i class="fas fa-tag" style="color: #ef4444;"></i>
                            </div>
                            <div>满2件打9折，满3件打8折</div>
                        </li>
                        <li class="feature-item">
                            <div class="feature-icon">
                                <i class="fas fa-tag" style="color: #ef4444;"></i>
                            </div>
                            <div>领券满500减50，满1000减120</div>
                        </li>
                        <li class="feature-item">
                            <div class="feature-icon">
                                <i class="fas fa-tag" style="color: #ef4444;"></i>
                            </div>
                            <div>购买即赠耳机收纳袋</div>
                        </li>
                        <li class="feature-item">
                            <div class="feature-icon">
                                <i class="fas fa-clock" style="color: #64748b;"></i>
                            </div>
                            <div>活动时间：2023-06-01 至 2023-06-30</div>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    

    
    <!-- Bootstrap 5 JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>

        // 商品图片切换
        const thumbnailItems = document.querySelectorAll('.thumbnail-item');
        const mainProductImage = document.getElementById('mainProductImage');
        
        thumbnailItems.forEach(item => {
            item.addEventListener('click', () => {
                // 移除所有缩略图的active类
                thumbnailItems.forEach(i => i.classList.remove('active'));
                // 给当前点击的缩略图添加active类
                item.classList.add('active');
                // 切换主图
                mainProductImage.src = item.querySelector('.thumbnail-image').dataset.img;
            });
        });
        
        // 数量控制
        const quantityMinus = document.getElementById('quantityMinus');
        const quantityPlus = document.getElementById('quantityPlus');
        const quantityInput = document.getElementById('quantityInput');
        
        quantityMinus.addEventListener('click', () => {
            let currentValue = parseInt(quantityInput.value);
            if (currentValue > 1) {
                quantityInput.value = currentValue - 1;
            }
        });
        
        quantityPlus.addEventListener('click', () => {
            let currentValue = parseInt(quantityInput.value);
            quantityInput.value = currentValue + 1;
        });
        
        quantityInput.addEventListener('change', () => {
            let value = parseInt(quantityInput.value);
            if (isNaN(value) || value < 1) {
                quantityInput.value = 1;
            }
        });
        
        // 属性选择
        const attributeOptions = document.querySelectorAll('.attribute-option');
        attributeOptions.forEach(option => {
            option.addEventListener('click', () => {
                // 找到同一组中的其他选项并移除selected类
                const parent = option.parentElement;
                parent.querySelectorAll('.attribute-option').forEach(opt => {
                    opt.classList.remove('selected');
                });
                // 给当前选项添加selected类
                option.classList.add('selected');
                showNotification(`已选择${option.textContent}`);
            });
        });
        
        // 加入购物车
        const addCartBtn = document.getElementById('addCartBtn');
        addCartBtn.addEventListener('click', () => {
            const quantity = quantityInput.value;
            showNotification(`已将 ${quantity} 件商品加入购物车`);
        });
        
        // 立即购买
        const buyNowBtn = document.getElementById('buyNowBtn');
        buyNowBtn.addEventListener('click', () => {
            showNotification('跳转到结算页面');
            // 实际应用中这里会跳转到结算页面
        });
        
        // 加入收藏
        const wishlistBtn = document.getElementById('wishlistBtn');
        wishlistBtn.addEventListener('click', () => {
            const icon = wishlistBtn.querySelector('i');
            if (icon.classList.contains('far')) {
                icon.classList.remove('far');
                icon.classList.add('fas');
                showNotification('已添加到收藏');
            } else {
                icon.classList.remove('fas');
                icon.classList.add('far');
                showNotification('已从收藏中移除');
            }
        });
        
        // 关注卖家
        const followSellerBtn = document.getElementById('followSellerBtn');
        followSellerBtn.addEventListener('click', () => {
            if (followSellerBtn.classList.contains('following')) {
                followSellerBtn.classList.remove('following');
                followSellerBtn.textContent = '关注';
                showNotification('已取消关注');
            } else {
                followSellerBtn.classList.add('following');
                followSellerBtn.textContent = '已关注';
                showNotification('关注成功');
            }
        });
        
        // 评分选择
        const ratingStars = document.querySelectorAll('#userRating .star');
        ratingStars.forEach(star => {
            star.addEventListener('mouseover', () => {
                const rating = parseInt(star.dataset.rating);
                highlightStars(rating);
            });
            
            star.addEventListener('click', () => {
                const rating = parseInt(star.dataset.rating);
                // 记录用户选择的评分
                ratingStars.forEach(s => {
                    s.classList.remove('active');
                    if (parseInt(s.dataset.rating) <= rating) {
                        s.classList.add('active');
                    }
                });
            });
        });
        
        document.getElementById('userRating').addEventListener('mouseout', () => {
            // 鼠标离开时，只保留用户已选择的评分
            const activeStars = document.querySelectorAll('#userRating .star.active');
            if (activeStars.length === 0) {
                ratingStars.forEach(star => {
                    star.classList.remove('fas', 'text-warning');
                    star.classList.add('far');
                });
            } else {
                const rating = parseInt(activeStars[activeStars.length - 1].dataset.rating);
                highlightStars(rating);
            }
        });
        
        function highlightStars(rating) {
            ratingStars.forEach(star => {
                const starRating = parseInt(star.dataset.rating);
                if (starRating <= rating) {
                    star.classList.remove('far');
                    star.classList.add('fas', 'active');
                } else {
                    star.classList.remove('fas', 'active');
                    star.classList.add('far');
                }
            });
        }
        
        // 提交评论
        const submitReviewBtn = document.getElementById('submitReviewBtn');
        submitReviewBtn.addEventListener('click', () => {
            const activeStars = document.querySelectorAll('#userRating .star.active');
            const reviewText = document.querySelector('.review-textarea').value.trim();
            
            if (activeStars.length === 0) {
                showNotification('请给出您的评分');
                return;
            }
            
            if (reviewText === '') {
                showNotification('请输入评价内容');
                return;
            }
            
            showNotification('评价提交成功，感谢您的反馈！');
            // 实际应用中这里会提交评论数据到服务器
            // 然后重置表单
            document.querySelector('.review-textarea').value = '';
            ratingStars.forEach(star => {
                star.classList.remove('fas', 'active');
                star.classList.add('far');
            });
        });
        
        // 评论点赞
        const likeButtons = document.querySelectorAll('.like-btn');
        likeButtons.forEach(button => {
            button.addEventListener('click', () => {
                const icon = button.querySelector('i');
                const countText = button.querySelector('span');
                let count = parseInt(countText.textContent.match(/\d+/)[0]);
                
                if (icon.classList.contains('far')) {
                    icon.classList.remove('far');
                    icon.classList.add('fas');
                    button.classList.add('liked');
                    countText.textContent = `有用 (${count + 1})`;
                    showNotification('点赞成功');
                } else {
                    icon.classList.remove('fas');
                    icon.classList.add('far');
                    button.classList.remove('liked');
                    countText.textContent = `有用 (${count - 1})`;
                    showNotification('取消点赞');
                }
            });
        });
        
        // 回复点赞
        const likeReplyButtons = document.querySelectorAll('.like-reply-btn');
        likeReplyButtons.forEach(button => {
            button.addEventListener('click', () => {
                const icon = button.querySelector('i');
                const countText = button.querySelector('span');
                let count = parseInt(countText.textContent.match(/\d+/)[0]);
                
                if (icon.classList.contains('far')) {
                    icon.classList.remove('far');
                    icon.classList.add('fas');
                    button.classList.add('liked');
                    countText.textContent = `有用 (${count + 1})`;
                    showNotification('点赞成功');
                } else {
                    icon.classList.remove('fas');
                    icon.classList.add('far');
                    button.classList.remove('liked');
                    countText.textContent = `有用 (${count - 1})`;
                    showNotification('取消点赞');
                }
            });
        });
        
        // 回复评论
        const replyButtons = document.querySelectorAll('.reply-btn');
        replyButtons.forEach(button => {
            button.addEventListener('click', () => {
                const reviewId = button.dataset.id;
                const replyForm = document.getElementById(`replyForm-${reviewId}`);
                
                // 隐藏所有回复框
                document.querySelectorAll('.reply-form').forEach(form => {
                    form.style.display = 'none';
                });
                
                // 显示当前回复框
                replyForm.style.display = 'flex';
            });
        });
        
        // 取消回复
        const cancelReplyButtons = document.querySelectorAll('.cancel-reply');
        cancelReplyButtons.forEach(button => {
            button.addEventListener('click', () => {
                const reviewId = button.dataset.id;
                const replyForm = document.getElementById(`replyForm-${reviewId}`);
                replyForm.style.display = 'none';
            });
        });
        
        // 提交回复
        const submitReplyButtons = document.querySelectorAll('.submit-reply');
        submitReplyButtons.forEach(button => {
            button.addEventListener('click', () => {
                const reviewId = button.dataset.id;
                const replyForm = document.getElementById(`replyForm-${reviewId}`);
                const replyInput = replyForm.querySelector('.reply-input');
                const replyText = replyInput.value.trim();
                
                if (replyText === '') {
                    showNotification('请输入回复内容');
                    return;
                }
                
                showNotification('回复成功');
                // 实际应用中这里会提交回复数据到服务器
                // 然后重置输入框并隐藏回复框
                replyInput.value = '';
                replyForm.style.display = 'none';
            });
        });
        
        // 分页按钮
        const pageBtns = document.querySelectorAll('.page-btn:not(.disabled)');
        pageBtns.forEach(btn => {
            if (!btn.innerHTML.includes('chevron')) { // 排除箭头按钮
                btn.addEventListener('click', () => {
                    pageBtns.forEach(b => b.classList.remove('active'));
                    btn.classList.add('active');
                    showNotification(`已切换到第 ${btn.textContent} 页`);
                });
            }
        });
    </script>
</body>
</html>
    
